package com.waitingsnow.common.share.netEaseMicroblog.events
{
	import flash.events.Event;
	
	/**
	 * 
	 * @author Tensharp
	 * 
	 * <p>接口调用时的错误事件.</p>
	 * 
	 */	
	
	public class NEMicroblogErrorEvent extends Event
	{
		/**
		 * <p>Request token错误时抛出该事件.</p> 
		 */	
		
		public static const REQUEST_TOKEN_ERROR:String = "RequestTokenError";
		
		/**
		 * <p>Access token错误时抛出</p> 
		 */	
		
		public static const ACCESS_TOKEN_ERROR:String  = "AccessTokenError";
		
		/**
		 * <p>home_timeline方法错误时抛出.</p> 
		 */	
		
		public static const HOME_TIMELINE_ERROR:String   = "homeTimelineError";
		
		/**
		 * <p>public_timeline方法错误时抛出.</p> 
		 */	
		
		public static const PUBLIC_TIMELINE_ERROR:String = "publicTimelineError";
		
		/**
		 * <p>mentions方法错误时抛出</p> 
		 */	
		
		public static const MENTIONS_ERROR:String        = "mentionsError";
		
		/**
		 * <p>user_timeline方法错误时抛出.</p> 
		 */	
		
		public static const USER_TIMELINE_ERROR:String   = "userTimelineError";
		
		/**
		 * <p>retweets_of_me方法错误时抛出</p> 
		 */	
		
		public static const RETWEETS_OF_ME_ERROR:String  = "retweetsOfMeError";
		
		/**
		 * <p>comments_by_me方法错误时抛出</p> 
		 */	
		
		public static const COMMENTS_BY_ME_ERROR:String  = "commentsByMeError";
		
		/**
		 * <p>comments_to_me方法错误时抛出</p> 
		 */	
		
		public static const COMMENTS_TO_ME_ERROR:String  = "commentsToMeError";
		
		/**
		 * <p>group_timeline方法错误时抛出</p> 
		 */	
		
		public static const GROUP_TIMELINE_ERROR:String  = "groupTimeLineError";
		
		/**
		 * <p>update错误时抛出</p> 
		 */	
		
		public static const UPDATE_ERROR:String       = "updateError";
		
		/**
		 * <p>reply方法错误时抛出</p> 
		 */	
		
		public static const REPLY_ERROR:String        = "replyError";
		
		/**
		 * <p>retweet方法错误时抛出</p> 
		 */	
		
		public static const RETWEET_ERROR:String      = "retweetError";
		
		/**
		 * <p>show方法错误时抛出</p> 
		 */	
		
		public static const SHOW_ERROR:String         = "showError";
		
		/**
		 * <p>destroy方法错误时抛出</p> 
		 */	
		
		public static const DESTROY_ERROR:String      = "destroyError";
		
		/**
		 * <p>comments方法错误时抛出</p> 
		 */	
		
		public static const COMMENTS_ERROR:String     = "commentsError";
		
		/**
		 * <p>retweets方法错误时抛出</p> 
		 */	
		
		public static const RETWEETS_ERROR:String     = "retweetedbyError";
		
		/**
		 * <p>retweeted_by方法错误时抛出</p> 
		 */	
		
		public static const RETWEETED_BY_ERROR:String = "retweetedbyError";
		
		/**
		 * <p>upload方法错误时抛出</p> 
		 */	
		
		public static const UPLOAD_ERROR:String       = "uploadError";
		
		/**
		 * <p>user_show方法错误时抛出</p>
		 */	
		
		public static const USER_SHOW_ERROR:String               = "userShowError";
		
		/**
		 * <p>suggestions方法错误时抛出</p>
		 */	
		
		public static const SUGGESTIONS_ERROR:String             = "suggestionsError";
		
		/**
		 * <p>suggestions_i_followers方法错误时抛出</p>
		 */
		
		public static const SUGGESTIONS_I_FOLLOWERS_ERROR:String = "suggestionsFollowersError";
		
		/**
		 * <p>user_groups方法错误时抛出</p>
		 */	
		
		public static const USER_GROUPS_ERROR:String             = "userGroupsError";
		
		/**
		 * <p>modify_user_groups方法错误时抛出</p>
		 */	
		
		public static const MODIFY_USER_GROUPS_ERROR:String      = "modifyUserGroupsError";
		
		/**
		 * <p>friendship_create方法错误时抛出</p>
		 */	
	
		public static const FRIENDSHIP_CREATE_ERROR:String         = "friendshipsCreateError";
		
		/**
		 * <p>friendship_destroy方法错误时抛出</p>
		 */		
		
		public static const FRIENDSHIP_DESTROY_ERROR:String 		  = "friendshipsDestroyError";
		
		/**
		 * <p>friendship_show方法错误时抛出</p>
		 */	
		
		public static const FRIENDSHIP_SHOW_ERROR:String           = "friendshipShowError";
		
		/**
		 * <p>friendship_friends方法错误时抛出</p>
		 */	
		
		public static const FRIENDSHIP_FRIENDS_ERROR:String        = "statusesFriendsError";
		
		/**
		 * <p>friendship_followers方法错误时抛出</p>
		 */	
		
		public static const FRIENDSHIP_FOLLOWERS_ERROR:String      = "statusesFollowersError";
		
		/**
		 * <p>friendship_names方法错误时抛出</p>
		 */	
		
		public static const FRIENDSHIP_NAMES_ERROR:String          = "friendsNamesError";
		
		/**
		 * <p>friendship_followers_name方法错误时抛出</p>
		 */	
		
		public static const FRIENDSHIP_FOLLOWERS_NAME_ERROR:String = "statusesFollowersNamesError";
		
		/**
		 * <p>top_retweets方法错误时抛出</p>
		 */	
		
		public static const TOP_RETWEETS_ERROR:String = "topRetweetsError";
		
		/**
		 * <p>recommended方法错误时抛出</p>
		 */		
		
		public static const RECOMMENDED_ERROR:String = "recommendedError";
		
		/**
		 * <p>direct_message方法错误时抛出</p>
		 */	
		
		public static const DIRECT_MESSAGES_ERROR:String         = "direct_messagesError";
		
		/**
		 * <p>direct_message_sent方法错误时抛出</p>
		 */	
		
		public static const DIRECT_MESSAGES_SENT_ERROR:String    = "direct_messagesSentError";
		
		/**
		 * <p>direct_message_new方法错误时抛出</p>
		 */	
		
		public static const DIRECT_MESSAGES_NEW_ERROR:String     = "direct_messagesNewError";
		
		/**
		 * <p>direct_message_destroy方法错误时抛出</p>
		 */	
		
		public static const DIRECT_MESSAGES_DESTROY_ERROR:String = "direct_messagesDestroyError";
		
		/**
		 * <p>direct_message_grouped方法错误时抛出</p>
		 */	
		
		public static const DIRECT_MESSAGES_GROUPED_ERROR:String = "direct_messagesGroupedError";
		
		/**
		 * <p>direct_message_session方法错误时抛出</p>
		 */	
		
		public static const DIRECT_MESSAGES_SESSION_ERROR:String = "direct_messagesSessionError";
		
		/**
		 * <p>direct_message_delete方法错误时抛出</p>
		 */	
		
		public static const DIRECT_MESSAGES_DELETE_ERROR:String  = "direct_messagesSessionDeleteError";
		
		/**
		 * <p>register方法错误时抛出</p>
		 */	
		
		public static const REGISTER_ERROR:String = "registerError";
		
		/**
		 * <p>activate方法错误时抛出</p>
		 */	
		
		public static const ACTIVATE_ERROR:String = "activateError";
		
		/**
		 * <p>update_profile方法错误时抛出</p>
		 */	
		
		public static const UPDATE_PROFILE_ERROR:String          = "updateProfileError";
		
		/**
		 * <p>update_profile_image方法错误时抛出</p>
		 */	
		
		public static const UPDATE_PROFILE_IMAGE_ERROR:String    = "updateProfileImageError";
		
		/**
		 * <p>verify_credentials方法错误时抛出</p>
		 */	
		
		public static const VERIFY_CREDENTIALS_ERROR:String      = "verifyCcredentialsError";
		
		/**
		 * <p>reminds_message_latest方法错误时抛出</p>
		 */
		
		public static const REDMINDS_MESSAGE_LATEST_ERROR:String = "remindsMessageLatestError";
		
		/**
		 * <p>rate_limit_status方法错误时抛出</p>
		 */	
		
		public static const RATE_LIMIT_STATUS_ERROR:String       = "accountRateLimitStatusError";
		
		/**
		 * <p>favorites方法错误时抛出</p>
		 */	
		
		public static const FAVORITES_ERROR:String         = "favoritesError";
		
		/**
		 * <p>favorites_create方法错误时抛出</p>
		 */	
		
		public static const FAVORITES_CREATE_ERROR:String  = "favoritesCreateError";
		
		/**
		 * <p>favorites_destroy方法错误时抛出</p>
		 */	
		
		public static const FAVORITES_DESTROY_ERROR:String = "favoritesDestroError";
		
		/**
		 * <p>blocks_create方法错误时抛出</p>
		 */	
		
		public static const BLOCKS_CREATE_ERROR:String       = "blocksCreateError";
		
		/**
		 * <p>blocks_destroy方法错误时抛出</p>
		 */	
		
		public static const BLOCKS_DESTROY_ERROR:String      = "blocksDestroyomplete";
		
		/**
		 * <p>blocks_exists方法错误时抛出</p>
		 */	
		
		public static const BLOCKS_EXISTS_ERROR:String       = "blocksExistsomplete";
		
		/**
		 * <p>blocks_blocking方法错误时抛出</p>
		 */	
		
		public static const BLOCKS_BLOCKING_ERROR:String     = "blocksBlockingomplete";
		
		/**
		 * <p>blocks_blocking_ids方法错误时抛出</p>
		 */	
		
		public static const BLOCKS_BLOCKING_IDS_ERROR:String = "blockingIdsomplete";
		
		/**
		 * <p>location_timeline方法错误时抛出</p>
		 */	
		
		public static const LOCATION_TIMELINE_ERROR:String = "locationTimelineError";
		
		/**
		 * <p>report方法错误时抛出</p>
		 */
		
		public static const REPORT_ERROR:String            = "locationReportError";
		
		/**
		 * <p>search_neighbors方法错误时抛出</p>
		 */
		
		public static const SEARCH_NEIGHBORS_ERROR:String  = "locationSearchNeighborsError";
		
		/**
		 * <p>location_venues方法错误时抛出</p>
		 */
		
		public static const LOCATION_VENUES_ERROR:String   = "locationVenuesError";
		
		/**
		 * <p>search方法错误时抛出</p>
		 */	
		
		public static const SEARCH_ERROR:String          = "searchError";
		
		/**
		 * <p>statuses_search错误时抛出</p>
		 */	
		
		public static const STATUSES_SEARCH_ERROR:String = "statusesSearchError";
		
		/**
		 * <p>user_search方法错误时抛出</p>
		 */	
		
		public static const USER_SEARCH_ERROR:String     = "usersSearchError";
		
		
		/**
		 * @private 
		 */		
		
		private var _text:String = "";
		
		/**
		 *
		 * <p>调用接口出现错误时服务器端返回的错误信息.</p>
		 *  
		 * @return 
		 * 
		 */		
		
		public function get text ():String
		{
			return _text;
		}
		
		public function NEMicroblogErrorEvent(type:String, text:String = null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			
			//
			
			_text = text;
		}
	}
}